import { Component } from 'react'
import { Provider } from "react-redux";
import dva from './utils/dva';
import models from "./models";



const myDvaApp = dva.createApp({
  initialState: {},
  models
})
const store = myDvaApp.getStore();
class App extends Component {

  componentDidMount() { }

  componentDidShow() { }

  componentDidHide() { }
  render() {
    // this.props.children 是将要会渲染的页面
    // return this.props.childrenreturn <Provider store={store}>
    return <Provider store={store}>
      {this.props.children}
    </Provider>
  }
}

export default App
